package com.dynamoc.client;

import com.dynamoc.cglib.CglibDynamic;
import com.dynamoc.jdk.JdkDybnamic;
import com.dynamoc.service.Service;
import com.dynamoc.service.impl.ServiceImpl;

public class CglibTest {
    public static void main(String[] args) {
        Service service = new ServiceImpl();


        CglibDynamic cglibDynamic = new CglibDynamic();
        Service proxyObject1 = (Service) cglibDynamic.getProxyObject(service);
        proxyObject1.addOne();
        proxyObject1.deleteOne();

    }
}
